Skip to content

feat(amd): move AMD multi-node fixed-sequence benchmarks to srt-slurm - #2542

Merged
cquil11 merged 6 commits into
mainfrom
agent/srt-slurm-amd-integration
Sep 25, 2026
Merged

cquil11 merged 6 commits into
mainfrom
agent/srt-slurm-amd-integration

Conversation

@cquil11

@cquil11 cquil11 commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Moves AMD multi-node fixed-sequence benchmarks to srt-slurm and removes the legacy bash that coordinated them. Follows #3352 (merged), which moved single-node fixed-sequence.

  • Cluster setup hooks: per-allocation host checks live in runners/srt-slurm/hooks/<cluster>/setup.sh, run through the profile's default_host_setup, with shared helpers in hooks/common.sh. MI355X gets its RDMA/QoS preflight, GPU drain gate, and hugepage reclaim. Documented in AGENTS.md and docs/configuration-procedures.md.
  • runners/launch_mi355x-amds.sh: multi-node jobs with a CONFIG_FILE submit the recipe through apply_srt_recipe with the shared post-eval (eval runs drop fake expert dispatch), then collect results with copy_fixed_sequence_results / copy_agentic_results and eval artifacts from logs/eval_results. The legacy multi-node path now only serves AgentX.
  • runners/srt-slurm/mi355x-amds.yaml: adds the multi-node settings (fabric interface, output dir, model path, HF cache mounts, exporter and nginx settings) to the single-node profile from refactor: migrate fixed-sequence recipes to SRT-Slurm / 将定长配方迁移至 SRT-Slurm #3352.
  • Recipes for Qwen3.5 FP8/MXFP4 and DeepSeek-R1 FP8/MXFP4 disaggregated serving; the seven configs now select them through CONFIG_FILE. Recipes write results in the shared sa-bench layout.
  • Adds sglang-disagg and vllm-disagg to synthetic acceptance.
  • Removes the legacy fixed-sequence launch scripts, the amd_utils vLLM and ATOM engine paths, the fixed-sequence bench client, and the per-model fixed-sequence server settings.

Recipes own serving and workload settings; InferenceX does not rewrite them. Workflow settings reach custom benchmarks through the exported job environment.

AgentX configs (DeepSeek V4 DSpark, GLM-5.3 TileRT) stay on the legacy path until the AgentX migration.

Folds in #2628, #2629, #2631, #2633.

Testing

Multi-node fixed-sequence e2e runs, one shape per config (8k1k). Runs at 97a721a32 unless noted; the Qwen3.5 FP8 retry is at 41e8bfc09.

Config Shape Latest attempt Previous attempts Result
dsr1-fp4-mi355x-sglang-disagg 1P1D TP8, c1 run 36047611697 (job) — ✅ 64.3 tok/s/GPU, TTFT 0.28 s, TPOT 8.5 ms
dsr1-fp4-mi355x-sglang-disagg-mtp MTP3 1P1D TP8, c1 run 36047616104 (job) — ✅ 127.0 tok/s/GPU, TTFT 0.28 s, TPOT 3.9 ms
dsr1-fp4-mi355x-sglang-disagg-8k1k-mtp MTP3 1P1D TP8, c2 run 36047620204 (job) — ✅ 234.8 tok/s/GPU, TTFT 0.29 s, TPOT 4.5 ms
dsr1-fp4-mi355x-sglang-disagg-8k1k-mtp MTP3 1P2D TP8, c2 run 36047620204 (job) — ✅ 170.9 tok/s/GPU, TTFT 0.30 s, TPOT 3.7 ms
dsr1-fp8-mi355x-sglang-disagg 1P1D TP4/TP8, c4 run 36047623603 (job) — ✅ 266.3 tok/s/GPU, TTFT 0.49 s, TPOT 10.7 ms
dsr1-fp8-mi355x-sglang-disagg 1P2D TP8, c4 run 36047623603 (job) — ✅ 139.3 tok/s/GPU, TTFT 0.32 s, TPOT 10.3 ms
dsr1-fp8-mi355x-sglang-disagg-mtp 1P1D TP4/TP8, c2 run 36047627458 (job) — ✅ 265.6 tok/s/GPU, TTFT 0.60 s, TPOT 4.8 ms
dsr1-fp8-mi355x-sglang-disagg-mtp 1P2D TP8, c2 run 36047627458 (job) — ✅ 143.0 tok/s/GPU, TTFT 0.34 s, TPOT 5.0 ms
qwen3.5-fp4-mi355x-sglang-disagg 1P1D TP8, c8 run 36047631528 (job) — ✅ 560.1 tok/s/GPU, TTFT 0.44 s, TPOT 7.5 ms
qwen3.5-fp8-mi355x-sglang-disagg 1P1D TP4/TP8, c8 run 36056605213 (job) ❌ run 36047636686 (job) at 97a721a32: prefill crashed, Hub snapshot config lacks vision_config; fixed in 41e8bfc09 ✅ 578.3 tok/s/GPU, TTFT 0.32 s, TPOT 9.9 ms
dsr1-fp4-mi355x-sglang-disagg eval-only DEP8 1P1D, c512 run 36047640563 (job) — ✅ gsm8k 0.950 strict / 0.949 flexible (≥ 0.91)

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution! Please reach out to respective companies' CODEOWNER to fill in the latest PR_REVIEW_CHECKLIST.md before pinging core maintainer on Slack for review. In order for the signoff PR check bot to trigger, you must follow the PR_REVIEW_CHECKLIST.md template correctly, including the phrase As a PR reviewer and CODEOWNER, I have reviewed this and have.

For PR verification, add the full-sweep-fail-fast label (strongly recommended) to this PR — the benchmark sweep only runs on labeled PRs. Use full-sweep-enabled only if you need matrix jobs to keep running past a failure.

PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. See GitHub's docs on re-running failed jobs


感谢你的贡献!请联系相应公司的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,然后再在 Slack 上联系核心维护者进行审阅。为了触发 signoff PR 检查机器人,你必须正确遵循 PR_REVIEW_CHECKLIST.md 模板,包括保留英文语句 As a PR reviewer and CODEOWNER, I have reviewed this and have。

如需进行 PR 验证,请为此 PR 添加 full-sweep-fail-fast 标签(强烈推荐)— 基准测试 sweep 仅在带有标签的 PR 上运行。仅当需要矩阵任务在失败后继续运行时才使用 full-sweep-enabled。

PR 作者有责任确保合并后所有 GitHub Action 任务完全通过。 很多时候失败只是偶发抖动(flake),重新运行失败的任务即可解决。参见 GitHub 关于重新运行失败任务的文档

@cquil11 cquil11 changed the title WIP: bring srt-slurm to AMD clusters / 将 srt-slurm 引入 AMD 集群 WIP: bring srt-slurm to AMD clusters Aug 10, 2026
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch from 3d6a75a to 0641575 Compare August 10, 2026 00:02
@cquil11 cquil11 changed the title WIP: bring srt-slurm to AMD clusters feat(amd): orchestrate AMD clusters with srt-slurm Aug 10, 2026
@cquil11
cquil11 marked this pull request as ready for review August 10, 2026 09:29
@cquil11
cquil11 requested a review from a team August 10, 2026 09:29
@claude

claude Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cquil11's task in 8m 2s —— View job


PR Review — feat(amd): orchestrate AMD clusters with srt-slurm

  • Gather context and read the PR diff
  • Validate configs/amd-master.yaml changes (image accessibility, config key prefixes)
  • Validate perf-changelog.yaml (present, appended at end)
  • Review launch scripts (runners/launch_*.sh) for enroot import pattern and bugs
  • Review srt-slurm recipe YAMLs and contract tests
  • Post inline comments and final summary

Summary

No blocking issues found. Two 🟡 warnings posted inline:

  1. HF cache root mismatch (runners/launch_mi355x-amds-srt.sh:66) — the staging job downloads with HF_HUB_CACHE=/hf_hub_cache while the Qwen3.5 production recipe (aligned in d3ed345) reads /hf_hub_cache/hub, so the pre-stage download for the 397B model lands where workers never look. Works today only because the shared cache is warm.
  2. Missing enroot import fallback (runners/launch_mi300x-amds-srt.sh:57-58) — the MI300X launcher only asserts pre-existing .sqsh files exist, and vllm-router-nightly-20260809-d2ba586.sqsh has no documented public source, making the lane unreproducible on fresh nodes. The MI355X launcher in this PR already shows the correct pattern.

Checks that passed: perf-changelog.yaml was updated alongside configs/amd-master.yaml and the new entry is correctly appended at the end of the file; all image: values are public Docker Hub references; runner names resolve via configs/runners.yaml; the CONFIG_FILE opt-in redirect in the two legacy launchers is safe (no existing AMD config sets CONFIG_FILE); env contract (PREFILL_*, DECODE_*, DISAGG, RESULT_FILENAME) matches benchmark-multinode-tmpl.yml; no hardcoded expert-parallel flags; no MTP scripts. One minor doc nit not worth an inline comment: AMD_BRINGUP.md documents 1058248... as "current development pin," but the MI355X launcher pins a different srt-slurm commit (7beb0a1...) — worth clarifying whether the divergent pins are intentional.

Note: I could not execute pytest/bash -n in this sandbox (commands require approval), so test results rely on reading the contract tests and the CI runs linked in the PR description.

Comment thread runners/launch_mi355x-amds-srt.sh Outdated
Comment thread runners/launch_mi300x-amds-srt.sh Outdated

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review ran; one nit-level bug was found and posted inline (MI355X qwen3.5 staging writing to the wrong HF cache root). Beyond that, a few other candidates were checked and ruled out: the producer-SHA file written by the srt-slurm launchers, the MI355X sglang disagg conc-list vs. the custom benchmark's actual concurrency sweep, and the AMD_BRINGUP.md translation/pin-staleness questions — none of these turned out to be functional issues. Given the size and novelty of this orchestration integration (new launcher scripts, cluster profiles, and recipes), a human look is still worthwhile.

Extended reasoning...

This PR introduces a large, brand-new AMD orchestration surface (srt-slurm integration): two new launcher scripts with nontrivial Slurm/Pyxis staging logic, two cluster profiles, five new recipe YAMLs, and two new contract test files, spanning MI300X and MI355X. Given the scale, the novelty of the code paths (remote staging via sbatch/srun, cache-path plumbing, git-pinned runtime fetch), and that CI already flags this PR for CODEOWNER sign-off, this falls well outside the bar for full automated approval regardless of the bug severity found. The one inline finding is a nit (redundant download risk, not a hard failure per the PR's own successful validation run), so it does not itself block merging, but the overall change warrants a human pass.

Comment thread runners/launch_mi355x-amds-srt.sh Outdated
Comment thread runners/launch_mi300x-amds-srt.sh Outdated
Comment thread runners/launch_mi300x-amds-srt.sh Outdated
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch from eb12f0e to cfd30df Compare August 27, 2026 07:00
@cquil11

cquil11 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

Closing because the project scope is now limited to porting existing active, nondeprecated AMD multi-node configurations. This validation or generic upstreaming PR is outside that final scope.

@cquil11

cquil11 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

Reopening: this PR predates the recent out-of-scope configuration-porting detour and was closed by mistake during an overly broad cleanup. Its prior state is being restored.

@cquil11 cquil11 reopened this Aug 27, 2026
Comment thread runners/launch_mi300x-amds-srt.sh Outdated
Comment on lines +84 to +90
if [[ ! -d "\$srt_runtime/.git" ]]; then
git clone --quiet "${SRT_SLURM_REPOSITORY}" "\$srt_runtime"
fi
git -C "\$srt_runtime" fetch --quiet origin "${SRT_SLURM_COMMIT}"
git -C "\$srt_runtime" checkout --quiet --detach "${SRT_SLURM_COMMIT}"
test "\$(git -C "\$srt_runtime" rev-parse HEAD)" = "${SRT_SLURM_COMMIT}"
make -C "\$srt_runtime" --no-print-directory setup-compute ARCH=x86_64

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Unlocked concurrent git clone/checkout/make on shared srt-slurm runtime dir keyed only by commit, not per-run

Extended reasoning...

REMOTE_SRT_RUNTIME="${REMOTE_BASE}/runtime/srt-slurm-${SRT_SLURM_COMMIT}" is a node-local path shared by ALL runs pinned to the same commit (not namespaced by RUN_KEY), and this directory later becomes SRTCTL_RUNTIME_SOURCE_DIR for the actual serving containers (line 134). Unlike the two container-image imports two lines above, which are explicitly wrapped in a per-target flock, the git clone/fetch/checkout --detach/make setup-compute sequence at lines 84-90 has no locking at all. If two overlapping CI executions (e.g. the srt-agg and srt-disagg MI300X matrix rows, or a rerun overlapping a still-running job) each submit their own 5-node stage sbatch job and Slurm schedules both onto the same compute node at the same time, both srun tasks race on the same .git directory: one process's git checkout --detach can collide with another's git clone/fetch (e.g. "Unable to create '.git/index.lock': File exists", or a clone racing a concurrent checkout leaving a partially-populated worktree). Because the whole stage step runs under set -euo pipefail, any such git failure aborts the entire…

Verification: normal. In runners/launch_mi300x-amds-srt.sh the per-node staging srun wraps container-image imports in a per-target flock (ensure_container_image: flock -w 2400 "$lock_fd"), but the git clone/fetch/checkout --detach/make setup-compute sequence (the if [[ ! -d "$srt_runtime/.git" ]]; then git clone ... block through make -C "$srt_runtime" ... setup-compute) has no locking.…

Comment thread runners/launch_mi300x-amds-srt.sh Outdated
Comment on lines +70 to +81
exec {lock_fd}>"\${target}.lock"
flock -w 2400 "\$lock_fd"
if ! unsquashfs -s "\$target" >/dev/null 2>&1; then
tmp="\${target}.tmp.\${SLURM_JOB_ID}"
rm -f "\$tmp"
enroot import -o "\$tmp" "docker://\${image}"
unsquashfs -s "\$tmp" >/dev/null
mv "\$tmp" "\$target"
fi
flock -u "\$lock_fd"
exec {lock_fd}>&-
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 sweep:tmp="${target}.tmp.${SLURM_JOB_ID}" -- staged squashfs import writes to a per-job .tmp. path (mi300x-amds-srt.sh:73, mi355x-amds-srt.sh:50) with no trap/cleanup on failure; only success path mvs it away.

Extended reasoning...

If enroot import or the follow-up unsquashfs -s fails or the 45-min staging job times out mid-import (network hiccup, oversized ROCm image, node reboot), the partially-written multi-GB .tmp.<jobid> squashfs is left on node-local /raid (mi300x) or the shared /it-share filesystem (mi355x). The next run always picks a fresh SLURM_JOB_ID for its tmp name, so it never revisits or removes the stale file, and the rm -f "$tmp" guard only ever clears the current job's own (not-yet-created) tmp path. Repeated failed CI attempts on the same lane accumulate orphaned multi-GB files, eventually exhausting node-local RAID or the shared HF-cache filesystem used by every other AMD lane. A correct fix cleans stale *.tmp.* siblings of the target (e.g. via a glob-and-remove pass under the lock, or an EXIT trap) before/at the start of ensure_container_image.

Verification: nit. At runners/launch_mi300x-amds-srt.sh:73-77 (and mi355x-amds-srt.sh ~50) the staging import writes to a per-job path tmp="${target}.tmp.${SLURM_JOB_ID}", and the only cleanup is rm -f "$tmp" on line 74 which removes only the current job's own (not-yet-created) tmp. Under set -euo pipefail, if enroot import -o "$tmp" (line 75) or unsquashfs -s "$tmp" (line 76) fails, or the…

@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch from cfd30df to 8581966 Compare August 27, 2026 16:24
@cquil11
cquil11 changed the base branch from codex/standardize-srt-slurm-v2 to main September 14, 2026 14:50
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch 2 times, most recently from 6d439d6 to fd4d3a3 Compare September 22, 2026 15:44
@cquil11
cquil11 changed the base branch from main to agent/srt-slurm-cluster-hooks September 23, 2026 21:13
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch 2 times, most recently from a3f971a to 0f87045 Compare September 23, 2026 22:03
@cquil11
cquil11 changed the base branch from agent/srt-slurm-cluster-hooks to codex/single-node-srt-slurm September 23, 2026 22:03
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch from 0f87045 to a63bd37 Compare September 23, 2026 22:05
@cquil11 cquil11 changed the title feat(amd): orchestrate AMD clusters with srt-slurm feat(amd): move AMD multi-node fixed-sequence benchmarks to srt-slurm Sep 23, 2026
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch 4 times, most recently from f5d2713 to e97493d Compare September 24, 2026 17:24
Base automatically changed from codex/single-node-srt-slurm to main September 24, 2026 17:30
Per-allocation host checks live in runners/srt-slurm/hooks/<cluster>/setup.sh
and run through the cluster profile's default_host_setup. Shared host-check
functions move to hooks/common.sh. MI355X gets its RDMA/QoS preflight, GPU
drain gate, and hugepage reclaim.
Multi-node jobs with a CONFIG_FILE use the shared native path: srt-slurm
owns allocation, serving, and post-eval; results and eval artifacts are
collected with the shared helpers. The MI355X profile adds the multi-node
fabric, model, and cache settings.
Move the Qwen3.5 FP8/MXFP4 and DeepSeek-R1 FP8/MXFP4 disaggregated configs to
srt-slurm recipes. Recipes write results in the shared sa-bench layout, and
eval runs drop fake expert dispatch. The legacy multi-node path now only
serves AgentX.
Delete the retired MI355X disaggregated launch scripts, the amd_utils vLLM and
ATOM engine paths, the fixed-sequence bench client, and the per-model
fixed-sequence server settings. AgentX keeps its SGLang and TileRT paths.
@cquil11
cquil11 force-pushed the agent/srt-slurm-amd-integration branch from e97493d to 97a721a Compare September 24, 2026 17:35
The cached Hub snapshot's config is text-only (qwen3_5_moe_text, no
vision_config), so SGLang's Qwen-VL processor crashed at startup. The legacy
path loaded /it-share/data/Qwen3.5-397B-A17B-FP8; register that as a model
alias and use it in the recipe.
@cquil11
cquil11 added this pull request to stack #3414 September 24, 2026 21:17
@cquil11
cquil11 removed this pull request from stack #3414 September 25, 2026 05:44
@cquil11
cquil11 merged commit 9f253be into main Sep 25, 2026
3 checks passed
@cquil11
cquil11 deleted the agent/srt-slurm-amd-integration branch September 25, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant